<?php
include_once("db.inc");
$username = $_REQUEST['username'];
$password = $_REQUEST['password'];
$tendoanhnghiep = $_REQUEST['tendoanhnghiep'];
$Nganh = $_REQUEST["nganh"];
$SoDienThoai = $_REQUEST["SoDienThoai"];
$SoFax = $_REQUEST["SoFax"];
$DiaChi = $_REQUEST["DiaChi"];
$sql = "insert into taikhoan values('$username','$password',0)";
$result = mysql_query($sql);
$sql2 = "insert into thanhvien values('$username','$tendoanhnghiep',$Nganh,'$SoDienThoai','$SoFax','$DiaChi',Now())";
$result2 = mysql_query($sql2);
echo "1";
?>